const basePathApplication = '';
const applicationRewritingPagesJump = (methods, options) => {
    let url = basePathApplication + options.url;
    options = Object.assign({}, options, { url: url })
    uni[methods](options);
}
const install = Vue => {
    Vue.prototype.applicationRewritingPagesJump = function (methods, options) {
        applicationRewritingPagesJump(methods, options);
    }
    Vue.prototype.applicationRewritingNavigateTo = function (options) {
        applicationRewritingPagesJump('navigateTo', options);
    }
    Vue.prototype.applicationRewritingRedirectTo = function (options) {
        applicationRewritingPagesJump('redirectTo', options);
    }

    Vue.prototype.applicationRewritingReLaunch = function (options) {
        applicationRewritingPagesJump('reLaunch', options);
    }

    Vue.prototype.applicationRewritingSwitchTab = function (options) {
        applicationRewritingPagesJump('switchTab', options);
    }

    Vue.prototype.applicationRewritingNavigateBack = function (options) {
        applicationRewritingPagesJump('navigateBack', options);
    }
}
// const applicationRewritingNavigateTo = (options) => {
//     applicationRewritingPagesJump('navigateTo', options);
// }
// const applicationRewritingRedirectTo = (options) => {
//     applicationRewritingPagesJump('redirectTo', options);
// }
// const applicationRewritingReLaunch = (options) => {
//     applicationRewritingPagesJump('reLaunch', options);
// }
// const applicationRewritingSwitchTab = (options) => {
//     applicationRewritingPagesJump('switchTab', options);
// }
// const applicationRewritingNavigateBack = (options) => {
//     applicationRewritingPagesJump('navigateBack', options);
// }
export default install;